
This resource address can be used to update the properties for the specified task.
| Response Headers | |
|---|---|
| Content-type | The MIME type of the data in the response
body. Depending upon the value of the format parameter or Accept header, either
application/xml or application/json. |
Upon success, MarkLogic Server returns status code 204 (No Content). If the payload is malformed or the privilege does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
The security role is required to set the task-user property.
task-enabled. The rest of
properties listed below are read-only. Note: The properties described here are
for XML payloads. In general they are the same for JSON, with the exception that, in JSON,
task-days is expressed in singular form. For example, in JSON,
task-days is instead task-day and the format is as shown in the
following example.
scheduled-task-relationsThis is a complex structure with the following children:
relationThis is a complex structure with the following children:
qualifiersThis is a complex structure with the following children:
qualifierThis is a complex structure with the following children:
urireftyperefidrefnamerefurireftyperefrolerefidrefnamerefrelation-idtask-idtask-enabledtask-pathtask-roottask-typetask-periodtask-month-daytask-daysThis is a complex structure with the following children:
task-daytask-start-datetask-start-timetask-timestamptask-usertask-priority
curl -X PUT --anyauth -u admin:admin -H "Content-Type:application/json" \
-d '{"task-enabled": "true"}' \
http://localhost:8002/manage/v2/tasks/myTask/properties
==> Changes the start time for the task, "myTask," to 10:00.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.